package com.tc.watercardrechargeserver.service;

import com.tc.watercardrechargeserver.repository.dao.User;
import com.tc.watercardrechargeserver.repository.mapper.UserMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * company: iot.chinamobile<br>
 * date: 2022/1/27 <br>
 * <p>
 * description:<br>
 * 业务名：
 * 文件名:
 * </p>
 *
 * @author tangcan@cmiot.chinamobile.com
 * @version 0.12.0
 */
//@PropertySource(value = "classpath:/application.properties")
@Service
public class UserService {

    @Resource
    private UserMapper userMapper;

    //读取用户信息
    public User getUserByName(String name) {
        User user = userMapper.selectUser(name);
        System.out.println(user);
        return user;
    }

}
